<?php


function get_ci(){
    return get_instance();
}
function md5_password($str){
    return strtolower(md5($str));
}

function jump($url){
    header("Location: {$url}");
    exit;
}

function get_user_session(){
    return get_ci()->session->userdata('user_info');
}

function return_json($data,$msg,$status){
    $data['data']       = $data;
    $data['msg']        = $msg;
    $data['status']     = $status;
    echo json_encode($data);
    exit();
}